package com.itxiaoxiong.openone.entity;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Group implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 拼团Id
     */
    private Long groupId;

    /**
     * 剧本Id  外键
     */
    private Long scriptId;

    /**
     * 团长用户Id 外键
     */
    private Long leaderId;

    /**
     * 目标人数
     */
    private Integer targetNum;

    /**
     * 当前人数
     */
    private Integer currentNum;

    /**
     * 状态 0为等待，默认， 1为成功， 2为失败
     */
    private Integer status;

    /**
     * 创造时间
     */
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 超时时间
     */
    private LocalDateTime expireTime;

    /**
     *修改时间
     */
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
